class UrlMappings {

	static mappings = {
            
                "/login/$username/$password"(controller:"login"){
                        action = [GET:"show", POST:"save", PUT:"update", DELETE:"remove"]
                        constraints {
                                // apply constraints here
                        }
		}
                
                "/wineType/$id/$wineType?/$wineDesc?"(controller:"wineType"){
                        action = [GET:"update"]
                        constraints {
                                // apply constraints here
                        }
		}
                
//		"/$controller/$action?/$id?"{
                "/$controller/$id?/"{
                        action = [GET:"show", POST:"save", PUT:"update", DELETE:"remove"]
                        constraints {
                                // apply constraints here
                        }
		}
                
		"/"(view:"/index")
		"500"(view:'/error')
	}
}
